package com.hunter.io;

import java.io.InputStream;

/**
 * @Classname Resources
 * @Description TODO
 * @Date 2021/7/22 0:45
 * @Created by haojie.liao
 */
public class Resources {

    /**
     * 根据配置文件的路径，将配置文件加载成字节输入流,存储在内存中
     * @param path
     * @return
     */
    public static InputStream getResourceAsStream(String path){
        InputStream resourceAsStream = Resources.class.getClassLoader().getResourceAsStream(path);
        return resourceAsStream;
    }
}
